package com.erp.pur.dao;

import com.erp.pur.domain.GroupDO;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 采购主表
 * @author Eric
 * @email shiliang900713@163.com
 * @date 2019-11-09 09:57:14
 */
@Mapper
public interface GroupDao {

	GroupDO get(Long id);
	
	List<GroupDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GroupDO group);
	
	int update(GroupDO group);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    int updatePaymentPrice(@Param("id") Long id, @Param("paymentPrice") BigDecimal paymentPrice);

	GroupDO getByGroupid(String groupid);

    int confirm(Long id);

    GroupDO getAllPriceBySupplierId(Long id);

    int updateinvoicePrice(@Param("id") Long purId,@Param("tickAmount") Double tickAmount);

    int updateoutstockPrice(@Param("id")Long purId, @Param("outstockPrice") BigDecimal outstockPrice);
}
